# demo12_while_break_continue.py
# continue:
my_sum100 = 0
my_counter = 0
while my_counter < 100:
    my_counter += 1
    if my_counter == 2:
        continue
        print("continue后的代码不会执行")
    my_sum100 += my_counter
print("sum:", my_sum100)


# break: 退出当前循环, break后的代码不会执行
# sum100 = 0
# counter = 1
# while counter <= 100:
#     if counter == 5:
#         print("加到5我不玩了")
#         break
#         print("break后面的代码会执行吗?")
#     sum100 += counter
#     counter += 1
# print("sum:", sum100)

